package com.wl.api.model.system;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 *
 * 
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "security_grade_price")
@Builder
public class SecurityGradePrice implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 编号 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 客户登记编号 */
	@TableField(value = "grade_id")
	private Long gradeId;

	/** 渠道编号 */
	@TableField(value = "channel_id")
	private Long channelId;

	/** 费用类型编号(dict_comon_data fee_type) */
	@TableField(value = "fee_id")
	private String feeId;

	/** 折扣比例默认是1 */
	private BigDecimal rebate;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	
	public SecurityGradePrice updateMsg(Long gradeId) {
		this.gradeId = gradeId;
		return this;
	}
}
